package com.nyist.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.nyist.dao.UserMapper;
import com.nyist.pojo.User;
import com.nyist.service.UserService;
@Service("userService")
public class UserServiceImpl implements UserService{

	@Resource
	private UserMapper userMapper;
	
	public User getUserById(String id) {
		return userMapper.selectByPrimaryKey(id);
	}

	@Override
	public void insertUsers(List<User> users) {
		userMapper.insertUsers(users);
	}
}
